<h3>{{i18n 'admin_title'}}</h3>

<ul>
  <li>
    {{d-button action="toggleMultiSelect" icon="tasks" label="topic.actions.multi_select" class="btn-admin"}}
  </li>

  {{#if model.details.can_delete}}
    <li>
      {{d-button action="deleteTopic" icon="trash-o" label="topic.actions.delete" class="btn-admin btn-danger"}}
    </li>
  {{/if}}

  {{#if showRecover}}
    <li>
      {{d-button action="recoverTopic" icon="undo" label="topic.actions.recover" class="btn-admin"}}
    </li>
  {{/if}}

  <li>
    {{#if model.closed}}
      {{d-button action="toggleClosed" icon="unlock" label="topic.actions.open" class="btn-admin"}}
    {{else}}
      {{d-button action="toggleClosed" icon="lock" label="topic.actions.close" class="btn-admin"}}
      {{d-button action="showAutoClose" icon="clock-o" label="topic.actions.auto_close" class="btn-admin"}}
    {{/if}}
  </li>

  {{#unless model.isPrivateMessage}}
    {{#if model.visible}}
      <li>
        {{#if isFeatured}}
          {{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.unpin" class="btn-admin"}}
        {{else}}
          {{d-button action="showFeatureTopic" icon="thumb-tack" label="topic.actions.pin" class="btn-admin"}}
        {{/if}}
      </li>
    {{/if}}
  {{/unless}}

  <li>
    {{#if model.archived}}
      {{d-button action="toggleArchived" icon="folder" label="topic.actions.unarchive" class="btn-admin"}}
    {{else}}
      {{d-button action="toggleArchived" icon="folder" label="topic.actions.archive" class="btn-admin"}}
    {{/if}}
  </li>

  <li>
    {{#if model.visible}}
      {{d-button action="toggleVisibility" icon="eye-slash" label="topic.actions.invisible" class="btn-admin"}}
    {{else}}
      {{d-button action="toggleVisibility" icon="eye" label="topic.actions.visible" class="btn-admin"}}
    {{/if}}
  </li>

  {{plugin-outlet "topic-admin-menu-buttons"}}
</ul>
